package com.suredy.app.porject.model.embedded;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.suredy.app.porject.model.Biddinger;

/**
 * 招标单位信息
 * 
 * @author VIVID.G
 * @since 2015-10-26
 * @version v0.1
 */
@Embeddable
public class BiddingerInfo {

	/* 招标单位 */
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.EAGER)
	@JoinColumn(name = "biddinger_id")
	private Biddinger biddinger;

	/* 招标单位联系人 */
	@Column(name = "biddinger_contact", length = 30)
	private String contact;

	/* 招标单位联系手机 */
	@Column(name = "biddinger_mobile", length = 20)
	private String mobile;

	/* 招标单位联系电话 */
	@Column(name = "biddinger_phone", length = 20)
	private String phone;

	public Biddinger getBiddinger() {
		return biddinger;
	}

	public void setBiddinger(Biddinger biddinger) {
		this.biddinger = biddinger;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}
